package com.huarui.part.dao.impl;

import java.util.List;
import java.util.Map;

import org.ewaf.framework.dao.impl.BaseDaoImpl;

import com.huarui.part.dao.IPartOfCarModelDao;
import com.huarui.part.model.PartOfCarModel;

public class PartOfCarModelDao extends BaseDaoImpl implements
		IPartOfCarModelDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<PartOfCarModel> getAll() {
		
		return this.getSqlMapClientTemplate().queryForList(namespace+".getPartOfCarModelPage");
	}

	@Override
	@SuppressWarnings("unchecked")
	public List<Map<String, Object>> getPartOfCarModelListByComplex(
			Map<String, Object> paramsMap) {
		return this.getSqlMapClientTemplate().queryForList(super.namespace + ".getPartOfCarModelListByComplex", paramsMap);
	}

	@Override
	public Integer getPartOfCarModelListCountByComplex(
			Map<String, Object> paramsMap) {
		return (Integer) this.getSqlMapClientTemplate().queryForObject(super.namespace + ".getPartOfCarModelListCountByComplex", paramsMap);
	}

	
	
}
